package com.zhentao.user.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @TableName app_user_member
 */
@ApiModel(description = "")
@TableName(value ="app_user_member")
@Data
public class AppUserMember implements Serializable {
    /**
     * 会员ID
     */
    @ApiModelProperty(value = "会员ID", position = 1)
    @TableId(value = "id")
    private Integer id;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID", position = 2)
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 会员类型 1黄金 2铂金 3钻石
     */
    @ApiModelProperty(value = "会员类型 1黄金 2铂金 3钻石", position = 3)
    @TableField(value = "type")
    private Integer type;

    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间", position = 4)
    @TableField(value = "stack_time")
    private Date stackTime;

    /**
     * 到期时间
     */
    @ApiModelProperty(value = "到期时间", position = 5)
    @TableField(value = "size_time")
    private Double sizeTime;

    /**
     * 售价
     */
    @ApiModelProperty(value = "售价", position = 6)
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 支付方式 1微信 2支付宝 3余额
     */
    @ApiModelProperty(value = "支付方式 1微信 2支付宝 3余额", position = 7)
    @TableField(value = "pay_type")
    private Integer payType;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}